package com.entity;

import java.util.Date;

public class Student {

    private  int id;
    private  int stuno;
    private String stuname;
    private int gid;
    private String address;
    private String email;
    private Date borndate;
    private  String sex;

    private Grade grade;//一对一

    public Grade getGrade() {
        return grade;
    }

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    public  Student(){}
    public  Student(int id,int stuno,
                    String stuname,int gid,
                    String address,String email,
                    Date borndate,String sex){
    this.id = id;
    this.stuno = stuno;
    this.stuname = stuname;
    this.gid = gid;
    this.address = address;
    this.email = email;
    this.borndate = borndate;
    this.sex = sex;

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStuno() {
        return stuno;
    }

    public void setStuno(int stuno) {
        this.stuno = stuno;
    }

    public String getStuname() {
        return stuname;
    }

    public void setStuname(String stuname) {
        this.stuname = stuname;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBorndate() {
        return borndate;
    }

    public void setBorndate(Date borndate) {
        this.borndate = borndate;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", stuno=" + stuno +
                ", stuname='" + stuname + '\'' +
                ", gid=" + gid +
                ", address='" + address + '\'' +
                ", email='" + email + '\'' +
                ", borndate=" + borndate +
                ", sex='" + sex + '\'' +
                '}';
    }
}
